
Page({

  onShow(options) {
    var that=this
    wx.request({
      method: "GET",
      url: "http://192.168.2.115:3001/api/v1.0.0/userlists/",
     
      header: {
        "Content-Type": "application/x-www-form-urlencoded",
        Authorization: "JWT " + wx.getStorageSync(
          "token")
      },

      success(res) {
        console.log(res.data)
        that.setData({
          lists:res.data.data
         })
      },
      fail(err) {
        console.log(err)

      }

    })
    

  
  },
  // 获取订单列表的方法
  tzbd(e){
    var detail=e.currentTarget.dataset.detail
    wx.navigateTo({
      url: '../test/index?detail='+JSON.stringify(detail),
    })
  }
})